package com.ytq.share.config;

import javax.sql.DataSource;

import java.util.Map;

import org.apache.commons.dbcp.BasicDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author yuantongqin
 * description:
 * 2020/2/29
 */
@Configuration
@MapperScan(basePackages = "com.ytq.share.dao.myds0",sqlSessionFactoryRef = "")
public class ShareDataSource {

    public DataSource shareDataSource(){
//        ShardingDataSourceFactory.createDataSource();
        return null;
    }

    public Map<String,DataSource> dataSourceMap(){

        return null;
    }

    public DataSource createDataSource(){
        BasicDataSource ds = new BasicDataSource();

        return ds;
    }




}
